ComponentOne Xamarin.Android
CreateViewHolder Method (C1RecyclerViewAdapter<T>)


C1.Android.CollectionView Assembly > C1.Android.CollectionView Namespace > C1RecyclerViewAdapter<T> Class : CreateViewHolder Method
Syntax
'Declaration
 
<Android.Runtime.RegisterAttribute("createViewHolder", 
   "(Landroid/view/ViewGroup;I)Landroid/support/v7/widget/RecyclerView$ViewHolder;", 
   "")>
Public Function CreateViewHolder( _
   ByVal parent As Android.Views.ViewGroup, _
   ByVal viewType As Integer _
) As Java.Lang.Object
'Usage
 
Dim instance As C1RecyclerViewAdapter(Of T)
Dim parent As Android.Views.ViewGroup
Dim viewType As Integer
Dim value As Java.Lang.Object
 
value = instance.CreateViewHolder(parent, viewType)
[Android.Runtime.Register("createViewHolder", 
   "(Landroid/view/ViewGroup;I)Landroid/support/v7/widget/RecyclerView$ViewHolder;", 
   "")]
public Java.Lang.Object CreateViewHolder( 
   Android.Views.ViewGroup parent,
   int viewType
)

Parameters

parent
viewType
See Also

Reference

C1RecyclerViewAdapter<T> Class
C1RecyclerViewAdapter<T> Members